Skip to content

FLW-1251 - #696

Open
NikhilFegade wants to merge 56 commits into
release-2.14from
naf_feature_gamification
Open

NikhilFegade wants to merge 56 commits into
release-2.14from
naf_feature_gamification

Conversation

@NikhilFegade

Copy link
Copy Markdown
Member

📋 Description

JIRA ID:

Please provide a summary of the change and the motivation behind it. Include relevant context and details.


✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

drtechie and others added 30 commits February 16, 2026 11:12
* feat: complete initial draft of CI-CD workflow

* fix: code rabbit comments

---------

Co-authored-by: Mithun James <1007084+drtechie@users.noreply.github.com>
* change the gradle 8.4 to 8.7

* workflow required

* fastlane/fastfile changes

* fastlane/fastfile changes1

* fastlane/fastfile changes for google testing

* Move URL configs from secrets to vars

* add manual versionCode input

* Fix Appfile json_key_file path to match workflow decode location

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add version_name to upload_to_play_store to update release name on Play Console

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
The certificate file was accidentally committed. Removing from tracking
while keeping it in .gitignore to prevent re-addition.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The file contains sensitive API URLs and secrets. Removing from tracking
and adding to .gitignore to prevent re-addition. Developers will need
a local copy to build.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Hindi translation changes for all module

# Conflicts:
#	app/src/main/java/org/piramalswasthya/sakhi/configuration/IconDataset.kt
#	app/src/main/res/values-as/strings.xml
#	app/src/main/res/values-hi/strings.xml
#	app/src/main/res/values/strings.xml

* icon translation changes

* Updated Hindi translation changes for all module

* DB Migration Crash Fix

* UI changes for dashboard and death reports

* DB Migration Crash Fix

* fix: unify relation dropdown logic between Add Members and FAB flow

* fix: unify relation dropdown logic between Add Members and FAB flow

* Fix form elements not appearing in Hindi/Assamese language

* mitanin translation changes for hindi language, for branch 2.8

* code rabbit changes

* Fix relation with HoF dropdown mismatch in add member floating button

* Change toolbar title from 'ANC Visit' to 'Home Visit' in AntenatalCounsellingFragment

* Make 'Method of Termination' and 'Termination done by' non-mandatory in CAC Form

* Remove 'MiniLap' from Method of Contraception dropdown in PNC Visit form

* Add visit date restriction based on DOB + month selection in HBYC Form

* Fix null pointer crash in Abortion Register visit date picker when abortionDate is null

* Fix MDA form crash by disabling stable IDs, adding safe date picker constraints and index bounds checks

* Comment out unused ectdset_po_neg array in Hindi strings

* Add Hindi translations and fix leprosy/NCD flow bugs
  - Add Hindi translations for TB screening, NCD categories (Screened/Not Screened), CDR form, TB regimen types, sputum sample locations, and test results
  - Fix BenRegFormDataset hardcoded English strings (Birth Certificates, Front/Back Side) showing in view mode
  - Fix getLongFromDate crash on empty string with null-safe parsing
  - Fix getLocalValueInArray to handle both English and localized stored values
  - Fix leprosy type-of-leprosy not loading in confirmed form due to language mismatch
  - Use locale-aware resources in NcdEligibleListViewModel for category filtering
  - Remove duplicate Infant Registration strings from strings_maternal_health.xml

* code rabbit changes

* Abortion List count issue fixed

* fix dropdown issue with hi (#348)

* fix: UI improvements and Hindi translations for CBAC, VHNC, HBNC, HBYC forms
  - Change CBAC asterisk color from red to green (#99cc00)                                                                                                                       - Fix view button visibility in VHNC form to show only when image is uploaded                                                                                                  - Add showImageDialog in VHNC form for image preview; show toast if no image                                                                                                   - Fix default radio button pre-selection in HBNC and HBYC dynamic forms                                                                                                        - Add English shortforms (GEN, SC, ST, BC, OBC, OC, PVTG, NA) to Hindi community array

* fix - hindi translation, and also chnage in maternal health module

* Remove Contact Number, Mobile Number Belongs To and Send OTP fields for mitanin flavors in beneficiary registration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Toggle consent checkbox when clicking adjacent text in registration forms

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Filter MiniLap for mitanin and Female Sterilization for other flavors in PNC contraception dropdown

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Restrict HBYC visit date calendar picker to DOB + X months minimum

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Rename Asha Meetings to Village Meetings and hide U-WIN Session for mitanin

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix - localization in every data set, for working of app in multiple language

* pushed missing files

* Asterisk color changes for CBAC

* feat: add value/label support for dynamic form options with radio and number field fixes

* fix: add Hindi translations for dropdown select text and submit button

* fix: update Hindi translation in ECT strings

* Hard coded code translation in dynamic forms for pic image and its dialogue box

* fix: show age and DoB as separate read-only fields in beneficiary edit

* fix: hide OTP icon and Assamese language for Mitanin, show Hindi on login

* Fixed CAC Form Translation Issue

* mitanin hindi flow, changes

* fix: allow Unicode letters in form field validation regex

* check_sam- crash fixes

* fix: support Devanagari combining marks in form field validation regex

* fix: localize dynamic form validation errors and show correct app name across languages

* Hof relation string fixed

* Hof relation string fixed and house type translation

* FLW-869
FLW-900

* ANC count issue fixed

* Fix EC IFA button hidden due to null isDeathValue check

* Add min/max validations for Systolic BP, Diastolic BP, and Hemoglobin in HRP follow-up forms

* Fix haveChildren field not hiding on marital status change to Unmarried

* CG[2.8]-Validation error not clearing after filling mandatory fields in Filaria MDA form
Multiple Hindi translation issues across Registration, ECT, NCD Referral List, and Village Level Form

* Fix img capture and auto scroll issue (#379)

* fix ben profile save issue

* fix auto scroll issue

* fix crash NewChildBenViewModel.setUpPage

* code rabbit changes

* adolescent form changes and ncd refer followup

* Fix NCD follow-up form validation: add error tag for multicheckbox/radio fields and handle empty collection in required field check

* Fix NCD follow-up form: validation error clearing for multicheckbox/radio, empty collection bypass, and Hindi localization for error messages and visit label

* Fix null string display in Filaria MDA Campaign list for families and individuals count

* Fix FOREIGN KEY constraint failure in CBAC and Refer sync by filtering out records with non-existent beneficiary IDs

* Unit Test Cases Implementation  (#384)

* Unit Testing Implementation

* Unit Testing Implementation - 726 tests (helpers, interceptors, repos, ViewModels)

* Unit Testing Implementation - 2200 tests, 90% is achieved

---------

Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>

---------

Co-authored-by: Kunalbizbrolly <kunal.bhatt@bizbrolly.com>
Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>
Co-authored-by: umaseershika45 <umaseershika@gmail.com>
Co-authored-by: Sushant☯ <sushant.work021@gmail.com>
Co-authored-by: Sushant <77480199+sushant-bizbrolly@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: ritik-bizbrolly <ritik.rathaur@bizbrolly.com>
* Hindi translation changes for all module

# Conflicts:
#	app/src/main/java/org/piramalswasthya/sakhi/configuration/IconDataset.kt
#	app/src/main/res/values-as/strings.xml
#	app/src/main/res/values-hi/strings.xml
#	app/src/main/res/values/strings.xml

* icon translation changes

* Updated Hindi translation changes for all module

* DB Migration Crash Fix

* UI changes for dashboard and death reports

* DB Migration Crash Fix

* fix: unify relation dropdown logic between Add Members and FAB flow

* fix: unify relation dropdown logic between Add Members and FAB flow

* Fix form elements not appearing in Hindi/Assamese language

* mitanin translation changes for hindi language, for branch 2.8

* code rabbit changes

* Fix relation with HoF dropdown mismatch in add member floating button

* Change toolbar title from 'ANC Visit' to 'Home Visit' in AntenatalCounsellingFragment

* Make 'Method of Termination' and 'Termination done by' non-mandatory in CAC Form

* Remove 'MiniLap' from Method of Contraception dropdown in PNC Visit form

* Add visit date restriction based on DOB + month selection in HBYC Form

* Fix null pointer crash in Abortion Register visit date picker when abortionDate is null

* Fix MDA form crash by disabling stable IDs, adding safe date picker constraints and index bounds checks

* Comment out unused ectdset_po_neg array in Hindi strings

* Add Hindi translations and fix leprosy/NCD flow bugs
  - Add Hindi translations for TB screening, NCD categories (Screened/Not Screened), CDR form, TB regimen types, sputum sample locations, and test results
  - Fix BenRegFormDataset hardcoded English strings (Birth Certificates, Front/Back Side) showing in view mode
  - Fix getLongFromDate crash on empty string with null-safe parsing
  - Fix getLocalValueInArray to handle both English and localized stored values
  - Fix leprosy type-of-leprosy not loading in confirmed form due to language mismatch
  - Use locale-aware resources in NcdEligibleListViewModel for category filtering
  - Remove duplicate Infant Registration strings from strings_maternal_health.xml

* code rabbit changes

* Abortion List count issue fixed

* fix dropdown issue with hi (#348)

* fix: UI improvements and Hindi translations for CBAC, VHNC, HBNC, HBYC forms
  - Change CBAC asterisk color from red to green (#99cc00)                                                                                                                       - Fix view button visibility in VHNC form to show only when image is uploaded                                                                                                  - Add showImageDialog in VHNC form for image preview; show toast if no image                                                                                                   - Fix default radio button pre-selection in HBNC and HBYC dynamic forms                                                                                                        - Add English shortforms (GEN, SC, ST, BC, OBC, OC, PVTG, NA) to Hindi community array

* fix - hindi translation, and also chnage in maternal health module

* Remove Contact Number, Mobile Number Belongs To and Send OTP fields for mitanin flavors in beneficiary registration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Toggle consent checkbox when clicking adjacent text in registration forms

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Filter MiniLap for mitanin and Female Sterilization for other flavors in PNC contraception dropdown

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Restrict HBYC visit date calendar picker to DOB + X months minimum

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Rename Asha Meetings to Village Meetings and hide U-WIN Session for mitanin

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix - localization in every data set, for working of app in multiple language

* pushed missing files

* Asterisk color changes for CBAC

* feat: add value/label support for dynamic form options with radio and number field fixes

* fix: add Hindi translations for dropdown select text and submit button

* fix: update Hindi translation in ECT strings

* Hard coded code translation in dynamic forms for pic image and its dialogue box

* fix: show age and DoB as separate read-only fields in beneficiary edit

* fix: hide OTP icon and Assamese language for Mitanin, show Hindi on login

* Fixed CAC Form Translation Issue

* mitanin hindi flow, changes

* fix: allow Unicode letters in form field validation regex

* check_sam- crash fixes

* fix: support Devanagari combining marks in form field validation regex

* fix: localize dynamic form validation errors and show correct app name across languages

* Hof relation string fixed

* Hof relation string fixed and house type translation

* FLW-869
FLW-900

* ANC count issue fixed

* Fix EC IFA button hidden due to null isDeathValue check

* Add min/max validations for Systolic BP, Diastolic BP, and Hemoglobin in HRP follow-up forms

* Fix haveChildren field not hiding on marital status change to Unmarried

* CG[2.8]-Validation error not clearing after filling mandatory fields in Filaria MDA form
Multiple Hindi translation issues across Registration, ECT, NCD Referral List, and Village Level Form

* Fix img capture and auto scroll issue (#379)

* fix ben profile save issue

* fix auto scroll issue

* fix crash NewChildBenViewModel.setUpPage

* code rabbit changes

* adolescent form changes and ncd refer followup

* Fix NCD follow-up form validation: add error tag for multicheckbox/radio fields and handle empty collection in required field check

* Fix NCD follow-up form: validation error clearing for multicheckbox/radio, empty collection bypass, and Hindi localization for error messages and visit label

* Fix null string display in Filaria MDA Campaign list for families and individuals count

* Fix FOREIGN KEY constraint failure in CBAC and Refer sync by filtering out records with non-existent beneficiary IDs

* Unit Test Cases Implementation  (#384)

* Unit Testing Implementation

* Unit Testing Implementation - 726 tests (helpers, interceptors, repos, ViewModels)

* Unit Testing Implementation - 2200 tests, 90% is achieved

---------

Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>

* dashboard count and list fix

* Enable emulator

* fix woman ben age count issue 2.8

* fix date of marriage count issue 2.8

* fix AgeAtMarriage count issue 2.8

* add dev environment setup

* update dummy google-services.json

* fix: add real encrypted pass key, keep ABHA credentials as dummy

* add passkey in cpp exm

* gradle up

* docs: update README with setup instructions

* update gradle

* update readme

* update setup.sh for clean

* update setup.sh for installSakshamUatDebug

---------

Co-authored-by: Kunalbizbrolly <kunal.bhatt@bizbrolly.com>
Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>
Co-authored-by: umaseershika45 <umaseershika@gmail.com>
Co-authored-by: Sushant☯ <sushant.work021@gmail.com>
Co-authored-by: Sushant <77480199+sushant-bizbrolly@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: ritik-bizbrolly <ritik.rathaur@bizbrolly.com>
# Conflicts:
#	.gitignore
#	app/src/main/java/org/piramalswasthya/sakhi/adapters/FormInputAdapter.kt
#	app/src/main/java/org/piramalswasthya/sakhi/adapters/InfantRegistrationAdapter.kt
#	app/src/main/java/org/piramalswasthya/sakhi/adapters/PwRegistrationListAdapter.kt
#	app/src/main/java/org/piramalswasthya/sakhi/adapters/dynamicAdapter/FormRendererAdapter.kt
#	app/src/main/java/org/piramalswasthya/sakhi/configuration/BenRegFormDataset.kt
#	app/src/main/java/org/piramalswasthya/sakhi/configuration/Dataset.kt
#	app/src/main/java/org/piramalswasthya/sakhi/configuration/InfantRegistrationDataset.kt
#	app/src/main/java/org/piramalswasthya/sakhi/configuration/MalariaFormDataset.kt
#	app/src/main/java/org/piramalswasthya/sakhi/configuration/PncFormDataset.kt
#	app/src/main/java/org/piramalswasthya/sakhi/configuration/PregnantWomanAncVisitDataset.kt
#	app/src/main/java/org/piramalswasthya/sakhi/database/room/InAppDb.kt
#	app/src/main/java/org/piramalswasthya/sakhi/helpers/CommonUtils.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/BindingUtils.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/asha_supervisor/SupervisorActivity.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/HomeActivity.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/all_ben/eye_surgery_registration/EyeSurgeryFormFragment.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/all_ben/eye_surgery_registration/EyeSurgeryFormViewModel.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/immunization_due/child_immunization/list/ChildImmunizationVaccineBottomSheetFragment.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/non_communicable_diseases/ncd_eligible_list/NcdEligibleListViewModel.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/non_communicable_diseases/ncd_referred/followUp/NCDReferalFormFragment.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/village_level_forms/ahd/AHDFormFragment.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/village_level_forms/national_deworming_day/DewormingFormFragment.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/village_level_forms/phc_review_meeting/PHCReviewFormFragement.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/village_level_forms/vhnc/VHNCFormFragement.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/village_level_forms/vhnd/VHNDFormFragement.kt
#	app/src/main/java/org/piramalswasthya/sakhi/ui/login_activity/sign_in/SignInFragment.kt
#	app/src/main/res/layout/fragment_ben_ifa_form.xml
#	app/src/main/res/values-as/strings.xml
#	app/src/main/res/values-as/strings_ben.xml
#	app/src/main/res/values-hi/strings.xml
#	app/src/main/res/values-hi/strings_abha.xml
#	app/src/main/res/values-hi/strings_ben.xml
#	app/src/main/res/values-hi/strings_ecr.xml
#	app/src/main/res/values-hi/strings_home.xml
#	app/src/main/res/values-hi/strings_hrp.xml
#	app/src/main/res/values-hi/strings_incentives.xml
#	app/src/main/res/values-hi/strings_kid.xml
#	app/src/main/res/values-hi/strings_maternal_health.xml
#	app/src/main/res/values-hi/strings_ncd.xml
#	app/src/main/res/values-hi/strings_sam.xml
#	app/src/main/res/values/strings.xml
#	app/src/main/res/values/strings_maternal_health.xml
#	app/src/main/res/values/strings_ncd.xml
#	app/src/test/java/org/piramalswasthya/sakhi/base/BaseViewModelTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/configuration/dynamicDataSet/DynamicFormFieldTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/helpers/TokenExpiryManagerTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/model/dynamicEntity/FormSchemaDtoTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/repositories/NcdReferalRepoTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/ui/home_activity/death_reports/DeathReportsViewModelTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/ui/home_activity/immunization_due/ChildImmunizationListViewModelTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/ui/home_activity/immunization_due/MotherImmunizationListViewModelTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/ui/home_activity/non_communicable_diseases/ncd_eligible_list/NcdEligibleListViewModelTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/ui/home_activity/non_communicable_diseases/ncd_referred/list/NcdRefferedListViewModelTest.kt
#	app/src/test/java/org/piramalswasthya/sakhi/ui/login_activity/sign_in/SignInViewModelTest.kt
#	version/version.properties
* Fix crashlytics crashes 2.9 (#481)

* fix crash service location screen

* Fix crashlytics crashes 2.9 (#482)

* fix crash age picker dialog

* merge fix crashlytics crashes 2.9 to 2.10 (#483)

* fix: null check oldJwt in TokenAuthenticator

* fix: retry on network error

* 2.9 crashes

* fix crash service location screen

* fix crash age picker dialog

* FLW 945

* work anc changes edd+60 and switch btn for delivery status.

* incentive amount show in mitanin

* FLW 978

* Language selection bottomsheet (#486)

* feat: add language selection bottom sheet

* feat: changes language selection bottom sheet

* FLW 966

* FLW 1015

* language translations

* language translations missing file

* FLW 1015

* Fix crashlytics crashes 2.10 (#491)

* fix top 3 crashes of 2.9.2

* fix crashes of 2.9.2

* fix null pointer crash of 2.9.2

* simplification of refer form.

* FLW 945

* Fix github actions issue

* auto move to delivery outcome

* FLW-1015

* FLW-1015

* change ncd validation and fix ben form ui issue (#496)

* anc issues

* changes

* work ncd changes

* change cufy validation (#499)

* Fix cufy visit validation (#500)

* change cufy validation

* remove changes

* remove changes for cufy validation (#501)

* work child count logic change and hwc refer validation and data inconsistent issue

* remove default select date (#503)

* API Integration

* API Integration

* FLW-1047, FLW-1048

* API Integration and UI changes

* Bug fixing 2.10 (#505)

* remove default select date

* some changes in login screen ui

* Allow 1 month back form current month

* fix delivery outcome form issues

* sync issues related changes

* fix employee id null issue (#507)

* API Integration

501 error code handled

pass abha id and family id in request also db changes and migration written

* fix malaria, kala azar and AES form issue (#508)

* fix malaria, kala azar and AES form issue

* remove timber

* localization added

* work on village level list filter , revert on logic for child immunization and leprosy changes

* For mitanin only internet available then create ben

* Remove hardcoded dev credentials from native-lib.cpp

Replace real encrypted pass key, ABHA client secret, and client ID in
the IS_DEVELOPMENT block with dummy placeholders. Real values must be
supplied via build env / local untracked config, not committed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Replace hardcoded dev URLs in native-lib.cpp with dummy placeholders

Remove real TMC/ABHA/chat URLs from the IS_DEVELOPMENT block. Real
values must be supplied via build env / local untracked config.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* For mitanin only internet available then create ben

* duplicate string removed

* work date parsing issue due to which downsync not working.

* block create new beneficiary on HouseholdMembers

* Enable create beneficiary only when data fetch from api

* consent change for mitanin

* consent change for mitanin added search abha in household flow

* session expired and malaria validation issue (#513)

* Fix:session expiry from tokenrefresh failures

* validation error issue

* consent change for mitanin added search abha in household flow

* app name localization

* work date parsing issue due to which downsync not working.

* merging 2.9 into 2.10

* anc visit issues

* bug fix

* FLW-1068
FLW-1067

* resolve lBW and ors sam ifa form edit issue

* fix duplicate ben and some search issue (#522)

* FLW-1028

* added validation

* changes for syncing issues

* changes for syncing issues

* Fix search issues (#525)

* fix inconsistent search issue

* added validation

* ect image issue resolved

* fix all points (#528)

* fix all ben search issue (#529)

* resolve multiple time api calling for same request (PushAmirtWorker)

* changing logic for weekofPregnancy count removing N/A if week of pregnancy is more then 40 week

* change ncd refer to hwc refer,

* added validation token related logs

* handle fallback correctly

* enabled high risk field in PWR

* add 1 month buffer for vaccination (#535)

* add 1 month buffer for vaccination

* add 1 month buffer for birth dose

---------

Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>
Co-authored-by: ritik-bizbrolly <ritik.rathaur@bizbrolly.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Fix crashlytics crashes 2.9 (#481)

* fix crash service location screen

* Fix crashlytics crashes 2.9 (#482)

* fix crash age picker dialog

* merge fix crashlytics crashes 2.9 to 2.10 (#483)

* fix: null check oldJwt in TokenAuthenticator

* fix: retry on network error

* 2.9 crashes

* fix crash service location screen

* fix crash age picker dialog

* FLW 945

* work anc changes edd+60 and switch btn for delivery status.

* incentive amount show in mitanin

* FLW 978

* Language selection bottomsheet (#486)

* feat: add language selection bottom sheet

* feat: changes language selection bottom sheet

* FLW 966

* FLW 1015

* language translations

* language translations missing file

* FLW 1015

* Fix crashlytics crashes 2.10 (#491)

* fix top 3 crashes of 2.9.2

* fix crashes of 2.9.2

* fix null pointer crash of 2.9.2

* simplification of refer form.

* FLW 945

* Fix github actions issue

* auto move to delivery outcome

* FLW-1015

* FLW-1015

* change ncd validation and fix ben form ui issue (#496)

* anc issues

* changes

* work ncd changes

* change cufy validation (#499)

* Fix cufy visit validation (#500)

* change cufy validation

* remove changes

* remove changes for cufy validation (#501)

* work child count logic change and hwc refer validation and data inconsistent issue

* remove default select date (#503)

* API Integration

* API Integration

* FLW-1047, FLW-1048

* API Integration and UI changes

* Bug fixing 2.10 (#505)

* remove default select date

* some changes in login screen ui

* Allow 1 month back form current month

* fix delivery outcome form issues

* sync issues related changes

* fix employee id null issue (#507)

* API Integration

501 error code handled

pass abha id and family id in request also db changes and migration written

* fix malaria, kala azar and AES form issue (#508)

* fix malaria, kala azar and AES form issue

* remove timber

* localization added

* work on village level list filter , revert on logic for child immunization and leprosy changes

* For mitanin only internet available then create ben

* Remove hardcoded dev credentials from native-lib.cpp

Replace real encrypted pass key, ABHA client secret, and client ID in
the IS_DEVELOPMENT block with dummy placeholders. Real values must be
supplied via build env / local untracked config, not committed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Replace hardcoded dev URLs in native-lib.cpp with dummy placeholders

Remove real TMC/ABHA/chat URLs from the IS_DEVELOPMENT block. Real
values must be supplied via build env / local untracked config.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* For mitanin only internet available then create ben

* duplicate string removed

* work date parsing issue due to which downsync not working.

* block create new beneficiary on HouseholdMembers

* Enable create beneficiary only when data fetch from api

* consent change for mitanin

* consent change for mitanin added search abha in household flow

* session expired and malaria validation issue (#513)

* Fix:session expiry from tokenrefresh failures

* validation error issue

* consent change for mitanin added search abha in household flow

* app name localization

* work date parsing issue due to which downsync not working.

* merging 2.9 into 2.10

* anc visit issues

* bug fix

* FLW-1068
FLW-1067

* resolve lBW and ors sam ifa form edit issue

* fix duplicate ben and some search issue (#522)

* FLW-1028

* added validation

* changes for syncing issues

* changes for syncing issues

* Fix search issues (#525)

* fix inconsistent search issue

* added validation

* ect image issue resolved

* fix all points (#528)

* fix all ben search issue (#529)

* resolve multiple time api calling for same request (PushAmirtWorker)

* changing logic for weekofPregnancy count removing N/A if week of pregnancy is more then 40 week

* change ncd refer to hwc refer,

* added validation token related logs

* handle fallback correctly

* enabled high risk field in PWR

* add 1 month buffer for vaccination (#535)

* add 1 month buffer for vaccination

* add 1 month buffer for birth dose

* 1.Since the beneficiary data fetching issue through ABHA ID and Ayushman ID search is not yet resolved, it has been decided that ABHA ID and Ayushman ID fields will not be mandatory during data entry.
To clearly identify the testing environment, 2. add "डेमो" (DEMO) in bold Hindi text on the login page.

* unblock registration without internet

* validation change as per requirement

* crashalytics fix

* handle 413

* fix: profile picture sync (#543)

* FLW-1101

* Fix profile picture sync (#545)

* fix: profile form view/edit mode

* FLW-1100

* FLW-1100

* Clear default selected value in dropdown (#548)

* Fix hbnc dropdown issue (#549)

* fix: handle null user to prevent ViewModel crashes

---------

Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>
Co-authored-by: ritik-bizbrolly <ritik.rathaur@bizbrolly.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Fix crashlytics crashes 2.9 (#481)

* fix crash service location screen

* Fix crashlytics crashes 2.9 (#482)

* fix crash age picker dialog

* merge fix crashlytics crashes 2.9 to 2.10 (#483)

* fix: null check oldJwt in TokenAuthenticator

* fix: retry on network error

* 2.9 crashes

* fix crash service location screen

* fix crash age picker dialog

* FLW 945

* work anc changes edd+60 and switch btn for delivery status.

* incentive amount show in mitanin

* FLW 978

* Language selection bottomsheet (#486)

* feat: add language selection bottom sheet

* feat: changes language selection bottom sheet

* FLW 966

* FLW 1015

* language translations

* language translations missing file

* FLW 1015

* Fix crashlytics crashes 2.10 (#491)

* fix top 3 crashes of 2.9.2

* fix crashes of 2.9.2

* fix null pointer crash of 2.9.2

* simplification of refer form.

* FLW 945

* Fix github actions issue

* auto move to delivery outcome

* FLW-1015

* FLW-1015

* change ncd validation and fix ben form ui issue (#496)

* anc issues

* changes

* work ncd changes

* change cufy validation (#499)

* Fix cufy visit validation (#500)

* change cufy validation

* remove changes

* remove changes for cufy validation (#501)

* work child count logic change and hwc refer validation and data inconsistent issue

* remove default select date (#503)

* API Integration

* API Integration

* FLW-1047, FLW-1048

* API Integration and UI changes

* Bug fixing 2.10 (#505)

* remove default select date

* some changes in login screen ui

* Allow 1 month back form current month

* fix delivery outcome form issues

* sync issues related changes

* fix employee id null issue (#507)

* API Integration

501 error code handled

pass abha id and family id in request also db changes and migration written

* fix malaria, kala azar and AES form issue (#508)

* fix malaria, kala azar and AES form issue

* remove timber

* localization added

* work on village level list filter , revert on logic for child immunization and leprosy changes

* For mitanin only internet available then create ben

* Remove hardcoded dev credentials from native-lib.cpp

Replace real encrypted pass key, ABHA client secret, and client ID in
the IS_DEVELOPMENT block with dummy placeholders. Real values must be
supplied via build env / local untracked config, not committed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Replace hardcoded dev URLs in native-lib.cpp with dummy placeholders

Remove real TMC/ABHA/chat URLs from the IS_DEVELOPMENT block. Real
values must be supplied via build env / local untracked config.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* For mitanin only internet available then create ben

* duplicate string removed

* work date parsing issue due to which downsync not working.

* block create new beneficiary on HouseholdMembers

* Enable create beneficiary only when data fetch from api

* consent change for mitanin

* consent change for mitanin added search abha in household flow

* session expired and malaria validation issue (#513)

* Fix:session expiry from tokenrefresh failures

* validation error issue

* consent change for mitanin added search abha in household flow

* app name localization

* work date parsing issue due to which downsync not working.

* merging 2.9 into 2.10

* anc visit issues

* bug fix

* FLW-1068
FLW-1067

* resolve lBW and ors sam ifa form edit issue

* fix duplicate ben and some search issue (#522)

* FLW-1028

* added validation

* changes for syncing issues

* changes for syncing issues

* Fix search issues (#525)

* fix inconsistent search issue

* added validation

* ect image issue resolved

* fix all points (#528)

* fix all ben search issue (#529)

* resolve multiple time api calling for same request (PushAmirtWorker)

* changing logic for weekofPregnancy count removing N/A if week of pregnancy is more then 40 week

* change ncd refer to hwc refer,

* added validation token related logs

* handle fallback correctly

* enabled high risk field in PWR

* add 1 month buffer for vaccination (#535)

* add 1 month buffer for vaccination

* add 1 month buffer for birth dose

* Merge 2.10 into 2.11 (#551)

* 1.Since the beneficiary data fetching issue through ABHA ID and Ayushman ID search is not yet resolved, it has been decided that ABHA ID and Ayushman ID fields will not be mandatory during data entry.
To clearly identify the testing environment, 2. add "डेमो" (DEMO) in bold Hindi text on the login page.

* unblock registration without internet

* validation change as per requirement

* crashalytics fix

* handle 413

* fix: profile picture sync (#543)

* FLW-1101

* Fix profile picture sync (#545)

* fix: profile form view/edit mode

* FLW-1100

* FLW-1100

* Clear default selected value in dropdown (#548)

* Fix hbnc dropdown issue (#549)

* fix: handle null user to prevent ViewModel crashes

---------

Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>

* fix: persist ASHA profile data after pull/save (#552)

* Merge into 2.11 (#557)

* 1.Since the beneficiary data fetching issue through ABHA ID and Ayushman ID search is not yet resolved, it has been decided that ABHA ID and Ayushman ID fields will not be mandatory during data entry.
To clearly identify the testing environment, 2. add "डेमो" (DEMO) in bold Hindi text on the login page.

* unblock registration without internet

* validation change as per requirement

* crashalytics fix

* handle 413

* fix: profile picture sync (#543)

* FLW-1101

* Fix profile picture sync (#545)

* fix: profile form view/edit mode

* FLW-1100

* FLW-1100

* Clear default selected value in dropdown (#548)

* Fix hbnc dropdown issue (#549)

* fix: handle null user to prevent ViewModel crashes

* fix:isDeath to restore Disease Control counts (#553)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Sign in Fragment Text visibilities issue fix

* FLW-1117

---------

Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* mitanin trainer module

* claim button customization as per mitanin

* approve reject incentive ...

* Work on firebase notification (#562)

* 1.Since the beneficiary data fetching issue through ABHA ID and Ayushman ID search is not yet resolved, it has been decided that ABHA ID and Ayushman ID fields will not be mandatory during data entry.
To clearly identify the testing environment, 2. add "डेमो" (DEMO) in bold Hindi text on the login page.

* unblock registration without internet

* validation change as per requirement

* crashalytics fix

* handle 413

* fix: profile picture sync (#543)

* FLW-1101

* Fix profile picture sync (#545)

* fix: profile form view/edit mode

* FLW-1100

* FLW-1100

* Clear default selected value in dropdown (#548)

* Fix hbnc dropdown issue (#549)

* fix: handle null user to prevent ViewModel crashes

* fix:isDeath to restore Disease Control counts (#553)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Notification framework Structure

* Notification framework Structure

* Notification framework Structure

* Notification framework Structure

* Notification structure setup

* Notification structure setup

* add firebase notification

* add firebase notification in supervisor

---------

Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* UI modification and logic changes

* changes

* UI enhancement

* Target Android 16 (API 36) (#565)

* remove check

* changes applied

* FLW-1129

* remove tile for utprerna

* changes done

* fix: resolve missing child surname issue (#570)

* fix: resolve missing child surname issue

* fix refactor issue

* change logic

* feat: display Days of Pregnancy in ANC visit (#573)

* Unit test coverage and pr checks (#575)

* test: add unit test cases (~50% coverage)

* test: add unit test cases (~60% coverage)

* test: add unit test cases (~65% coverage)

---------

Co-authored-by: Nikhil Fegade <nikhilfegade17@gmail.com>
Co-authored-by: ritik-bizbrolly <ritik.rathaur@bizbrolly.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
vaibhav45sktech and others added 23 commits August 19, 2026 02:51
…ication

Completes the recap's production flow. Before this, a release build could
never show the recap (availability failed closed with no way to open it),
nothing froze the monthly snapshot on a schedule, and nothing told the ASHA
her recap was ready — the strip only appeared if she happened to open the
app during days 1-7 and noticed it.

Rollout gate
- GamificationConfigProvider: one shared Firebase Remote Config provider for
  every gamification mechanic. gamification_master_enabled (kill switch) +
  one boolean key per mechanic + a shared pilot allowlist of user ids.
  A mechanic is on only when master AND its own key are true AND the
  allowlist is empty or contains the logged-in user.
- Keys for badges/notifications/consistency dashboard are reserved now so
  later mechanics need no new provider plumbing, only their own gate call.
- Every default in remote_config_defaults.xml is false/empty, so an
  unfetched or failed config shows nothing rather than guessing. Corrupt
  values and a malformed allowlist also fail closed.
- LocalMonthlyRecapAvailability now reads the real gate in release instead
  of returning all-unknown forever. Debug behaviour is unchanged.

Snapshot scheduler and notification
- MonthlyRecapReminderWorker: daily worker, scheduled at app startup. Inside
  the day 1-7 window it freezes the month's snapshot via the repo's existing
  idempotent getOrCreateCurrentRecap(), then posts one local notification
  inviting her to watch it.
- RecapNotificationState dedupes on (userId, yearMonth) so she is invited
  once per recap month, and a second ASHA on a shared device never receives
  the first one's reminder.
- Recap gets its own notification channel, separate from sync noise, so she
  can manage it independently. Strings in en/hi/as/bn.
- Worker no-ops silently when gated off, logged out, or outside the window,
  and swallows failures: gamification must never surface an error or
  retry-storm on top of clinical work.

On-device only, no server calls, no clinical table writes.
* badge tables BADGE_EARNED, BADGE_STATE, BADGE_SYNC_LOG, BADGE_STREAK_FREEZE, BADGE_CONFIG with migration 63 to 64
* badge evaluator with streak engine, grace tokens and freeze windows over existing health tables
* badge shelf screen and live progress widget on home with tiered badge artwork
* badge config and earned sync workers on flw-api/badges endpoints with offline defaults
* unit tests for streak engine
* daily reflection notification at 9 PM via AlarmManager, offline template engine with 4 languages
* journey screen, badge unlock celebration, migration 64 to 65
* rebalanced badge milestones for early first wins, confetti celebration with per-badge opt-out, almost-there nudges, hi/as/bn translations
* dashboard badge carousel with prev/next controls, launch-time evaluation race fix, disable release network body logging
Derive sync weeks from record dates, award streaks on best-ever run,
backfill past quarters; refresh badge copy for the new thresholds.
Long-press My Impact (debug only) stages Steady Syncer one sync from
its next tier; state level never drops below a permanently earned tier.
Replace non-null assertion in FormSaveInterceptor column lookup and log
the swallowed exceptions when recording the Steady Syncer sync week.
…er per badge

Maxed badges keep counting (streak weeks, cases) so the widget, carousel
and shelf showed e.g. "9 of 8"; clamp the displayed value to the target.
When several tiers land in one evaluation (backfill, first pull) only the
top tier per badge is celebrated instead of one overlay per tier.
Consolidates PR #574 into this branch so badges, evening notifications, the
impact dashboard and the monthly recap ship as one review rather than three that
each conflict with the next.

Three conflicts, all from the two modules landing in the same places:

- InAppDb: the recap migration was numbered 63->64, which badges had already
  taken, and evening notifications had taken 64->65. Renumbered to 65->66 and
  the database to version 66. A version number is a promise about what a phone
  already sitting on it contains, so reusing one would leave a device that
  migrated to the badges' 64 believing MONTHLY_RECAP exists and crashing on the
  first recap query rather than failing at upgrade time
- HomeIconsFragment: both modules add a setup call and their own section. Both
  kept; they touch different views and neither reads the other's state
- rv_icon_grid: the badge widget and the recap strip both sit above the module
  grid. Both kept, and the RecyclerView now takes the remaining height (0dp +
  weight) instead of match_parent, which with two siblings above it measured
  against the full parent and pushed the last row of icons off screen
Fourteen findings, all verified against the code before changing anything.

Badges
- BADGE_STATE is keyed by (userId, badgeId) rather than badgeId alone, and the
  shelf reads only the signed-in ASHA's rows. The drawer logout deliberately
  keeps the database so unsynced records survive, so rows outlive the session
  that wrote them and an unscoped read showed the next ASHA the previous one's
  progress. The table is created by this branch's own migration and has never
  shipped, so the DDL changed in place rather than adding a migration
- The earned push filters by user as well as by sync flag. It names the active
  ASHA in its body, so an unscoped read attributed a previous user's awards to
  whoever was logged in and then marked them synced, making it permanent
- Streak freezes are replaced in one transaction. Apart, an evaluation landing
  between the delete and the insert saw no freezes and broke a streak the server
  had explicitly protected
- The silent first evaluation is recorded in preferences instead of inferred
  from an empty BADGE_EARNED table. Those two are the same thing only until a
  genuine first badge arrives on an empty table and gets swallowed as history
- Activity weeks bucket by local day. Dividing epoch millis by a day gives the
  UTC day, so in IST anything saved before 05:30 fell into the previous one, and
  on a Monday that moved the key into the previous ISO week and lost Steady
  Syncer an activity week after reinstall
- Reinstall restore now applies only to badges whose awards carry no caseRef.
  The push omits caseRef because for per-case badges it is a beneficiary id and
  that never leaves the device, so restored quarterly rows came back empty and
  missed the local uniqueness key, collapsing on the way out and duplicating on
  the way back in. Quarterly and per-case awards are rederived from the ASHA's
  own re-synced records, which is how restore works with no backend at all

Evening notifications
- An out-of-range evening time is refused. Calendar is lenient, so "99:99"
  passed the shape check and rolled the alarm days forward, and the notification
  simply never arrived
- A template payload with any incomplete entry is rejected whole. Keeping the
  good entries installed a partial library under a version claiming to be
  complete, and sync only applies a strictly higher version, so the gaps stayed
- Templates are swapped in one transaction, so the alarm cannot read an empty
  library between the delete and the insert
- History is written only after the post succeeds. Recording it after a refused
  post burned the day: nothing appeared, and nothing retried until tomorrow
- "Updated" columns are no longer read as creation dates, so correcting a typo
  on an old form stops counting as work done today

Impact dashboard
- The carousel ticks only when the ASHA moved it herself. It also advances on a
  timer, and a buzz on those reads as a notification rather than as feedback
- The arrows had the same content description as each other, and it was the
  screen title. They now announce direction
- rv_icon_grid takes the remaining height instead of match_parent, fixed while
  resolving the recap merge: with two siblings above it, match_parent measured
  against the full parent and pushed the last row of icons off screen

Verified: 5864 unit tests pass and all five APK splits assemble. The one red
test, FilariaMDAFormViewModelTest, passes in isolation and fails only in a full
run from an exception leaking out of an earlier test; this PR touches no Filaria
files.
Closes the last CodeRabbit finding on this PR, which needed the field on both
sides of the API to be worth anything.

(user, badge, level) is not unique for every badge. Quarterly badges are
re-earned each quarter at the same level and per-case badges once per
beneficiary, so the upload collapsed those into one row and the restore brought
them back with an empty caseRef, missing the local uniqueness key and
duplicating against the awards evaluation derives. The interim fix was to skip
restoring those kinds entirely.

What separates two such awards is a quarter key or a beneficiary id. The first
is not about anyone and travels as it is. The second is hashed by AwardKeys at
the moment the award is created, not on the way out, so the digest is the only
form that ever exists: the local constraint and the server's agree, and a
restored row is the same row evaluation would derive rather than a second one.
The identifier never reaches a local table or the wire.

That is data minimisation, not a security boundary, and the KDoc says so: a
beneficiary id from a small space could be recovered by someone who already held
both the id list and the database, and the health tables it came from sit on the
same device behind the same lock.

awardKey defaults to empty on the DTO, so a server that predates the field still
deserialises, and an empty key is exactly what streak and cumulative badges send.

Verified: 5865 unit tests pass, including the new AwardKeysTest, and all five
APK splits assemble. The matching server change is in FLW-API feature/badges-api.
…d-dashboard

feat(gamification): badges, evening notifications, impact dashboard and monthly recap
Google removed the legacy `tools` SDK package from the SDK repository on
2026-09-14. setup-android@v2 declares no inputs and unconditionally runs
`sdkmanager tools`, which now exits 1 and fails the Set up Android SDK
step before the build starts.

v4 (>= 4.0.2) filters the removed package out; request platform-tools
explicitly. Same change already on main and release-2.12 (110ac8b).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…f progress

The My Impact carousel took 185dp of the dashboard for one badge: a 96dp
icon stacked over the title, a status line and an animated progress bar.
That is a lot of the first screen for numbers the shelf already shows in
full, one tap away.

The page is now a row — 56dp artwork, title, and the badge's own
description line saying what earns it — in an 84dp pager, roughly halving
the card. The description comes from each badge's existing desc string, so
no new copy needs translating.

The artwork still dims while a badge is locked and shows the highest tier
earned; the counter, arrows and auto-advance are unchanged.
…ge-card

refactor(badges): compact dashboard badge card, description instead o…
Room migration is the substance of this merge. Both branches left version
59 and renumbered independently, so they each defined 63→66 with different
contents: gamification created the badge, evening-notification and recap
tables there, while release-2.13 used those numbers for the ben cache view,
TB screening risk factors, a CBAC column and tb_tpt_follow_up, ending at 68.

Release numbering wins, because those versions are already on devices. The
gamification tables move to a single MIGRATION_68_69 and the database is
version 69. Every statement in it is CREATE ... IF NOT EXISTS, so a test
device still carrying the old gamification schema at 66 passes through it
harmlessly; release's own 66_67 already re-applies its 63–66 changes behind
columnExists guards, which is exactly the path such a device needs.

Conflicts elsewhere were release-vs-main churn: 157 test files and 216
source files took the release-2.13 version, since the gamification branch
had not touched them. The eight files that genuinely carry both features —
InAppDb, SakhiApplication, the dashboard layout, nav graph and the four
string resources — were merged by hand, keeping both sides.

Two silent auto-merges were broken and are fixed here: PwAncVisitsListFragment
had both sides' delivery-status lambdas spliced into unbalanced braces, and
HomeActivity ended up with two onNewIntent overrides, which kapt rejected.
They are now release's delivery-date picker, and one onNewIntent that does
the notification deeplink and the Journey routing.

Verified on an emulator: installing this build over release-2.13 migrates
the database from 68 to 69 with no crash, all nine gamification tables and
release's tb_tpt_follow_up present; installing it over an old gamification
build (66) with real data also opens normally.
Vulnerable Baby now counts HBNC visits from both the legacy table and the
dynamic form, and reads infant birth weight as grams. Badge awards sync
immediately and restored awards re-evaluate, so a second device shows them.
The evaluator no longer drops a save made within ten seconds of the last run.

Recap: the strip re-subscribes when the month rolls over, the reminder waits
for a story that can be opened, and debug builds skip the install-age gate so
QA can test with live records.

Dashboard badge card is compact and shows progress to the next tier; the badge
shelf is a plain listing; the Home strip is replaced by My Badges in the drawer.
Rollout flags default to on. Tests repaired after the release-2.13 merge.
Conflicts resolved: InAppDb, AppModule, UpdatePrefForPullCompleteWorker,
SchedulerFragment, HomeIconsFragment, ImmunizationDao, version.properties.

Database: release-2.14 already uses 68 -> 69 (TB_SCREENING) and is at v77,
so the gamification tables move to a new Migration77To78 (DB v78) instead of
the old gamification 68 -> 69. It creates the 9 tables with IF NOT EXISTS
(no swallowing try/catch) and adds the two TB_SCREENING columns when missing,
for QA devices that ran a gamification v69 build. Schema 78.json exported.

Tests adjusted for the merge: migration registry/chain tests (v78),
Migration77To78Test, BadgeApiDtoTest without kotlin-reflect Moshi,
DeliveryOutcomeViewModelTest taskCompletionBus parameter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Immunization: listing birth to 16-24 month doses before the child is old
  enough, and allowing vaccination dates from DOB, were added as QA aids for
  badges. They now apply only to debug/UAT builds; release keeps the
  minimum-age rules (fixes ChildImmunizationListViewModelTest min-age case).
  Defaulting an empty vaccination date to today and capping it at now stay.
- Monthly Recap: the debug-build readiness bypass is now a switch the unit
  tests turn off, so MonthlyRecapRepoTest checks the release gates again.
- Evening notification: skip delivery when no one is logged in instead of
  posting "Good evening, ASHA" on a logged-out device.
- Fastfile: restore release-2.14's shared debug keystore signing, which the
  gamification branch had dropped (CI debug APKs would not install over QA
  builds).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3df1863f-f2c2-4f32-bb58-274f202157de
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

NikhilFegade and others added 3 commits November 16, 2026 18:25
release-2.14 added Migration77To78 (gc_referral_follow_up crash fix, #694),
which clashed with the gamification 77->78 step. Resolution:
- Migration77To78, its test and schema 78.json taken from release-2.14 as-is
- gamification tables moved to Migration78To79; it re-runs Migration77To78
  first (IF NOT EXISTS only) for QA devices already on gamification v78
- InAppDb version 79, schema 79.json = 2.14's v78 + 9 gamification tables
- MigrationsTest / InAppDbRecentMigrationsTest updated for v79

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restores the 90% JaCoCo coverage gate on PR #696 (was 88%). Covers
BadgeEvaluator, BadgeFactsReader (in-memory SQLite), TaskCompletionBus,
BadgeRepository/Definitions/DemoSeeder, notification classifier,
templates, selector, sync handler, scheduler, FormSaveInterceptor,
NotificationEngine, recap strip/journey view models and RecapStoryGate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…capContentCodec

Restores JaCoCo instruction coverage above the 90% PR-check minimum
(was 0.89 on b2d3438 because these gamification classes had no tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants